import Mock from 'mockjs'

const data = Mock.mock({
  'colleges|30': [{
    collegeId: '@id',
    name: '@sentence(1, 2)',
    collegeOfficer: 'name',
    location: 'name',
    peopleNumber: '@integer(300, 5000)'
  }]
})

export default [
  {
    url: '/findAllCollege',
    type: 'get',
    response: config => {
      const colleges = data.colleges
      return {
        code: 20000,
        data: {
          colleges: colleges
        }
      }
    }
  }
]
